package com.bz.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.bz.common.PageInfo;
import com.bz.dao.ContactsCustomerDao;
import com.bz.entity.BusinessScopeEntity;
import com.bz.entity.ContactsCustomerEntity;
import com.bz.service.IContactsCustomerService;

@Service
public class ContactsCustomerServiceImpl implements IContactsCustomerService {

    @Autowired
    private ContactsCustomerDao contactsCustomerDao;

    @Override
    public PageInfo<BusinessScopeEntity> list(PageInfo page, LambdaQueryWrapper<ContactsCustomerEntity> queryWrapper) {
        queryWrapper.orderByDesc(ContactsCustomerEntity::getUpdateDate);
        return contactsCustomerDao.selectPage(page, queryWrapper);
    }

}
